14ddbb7710f2fb10447f458c738febb00e7e0baf,opennms-webapp/src/main/java/org/opennms/web/controller/ksc/CustomViewController.java,CustomViewController,handleRequestInternal,#HttpServletRequest#HttpServletResponse#,37
Before Change
PrefabGraph[] graph_options = new PrefabGraph[0];
if (report.getGraphCount() > 0) {
graph = report.getGraph(0); // get the first graph in the list
OnmsResource resource = getKscReportService().getResourceFromGraph(graph);
if ("custom".equals(report_type) && "node".equals(resource.getResourceType().getName())) {
After Change
if (report.getGraphCount() > 0) {
Set<PrefabGraph> prefabGraphs = new HashSet<PrefabGraph>();
for (int i = 0; i < report.getGraphCount(); i++) {
Graph graph = report.getGraph(i);
OnmsResource resource = getKscReportService().getResourceFromGraph(graph);
prefabGraphs.addAll(Arrays.asList(getResourceService().findPrefabGraphsForResource(resource)));
}